-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update EditCommand.java, EditCommandParser.java, and ParserUtil.java #103
Update EditCommand.java, EditCommandParser.java, and ParserUtil.java #103
Conversation
Update project from the team repo
Edit EditCommand.java, EditCommandParser.java, and ParserUtil.java so that we can edit the patient information and its record.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, the changes looks good to me!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that you have implemented Riya's task for this week. Would be good to discuss with her about this!!
if (argMultimap.getValue(PREFIX_GENDER).isPresent()) { | ||
editPatientDescriptor.setGender(ParserUtil.parseGender(argMultimap.getValue(PREFIX_GENDER).get())); | ||
} | ||
if (argMultimap.getValue(PREFIX_BIRTHDAY).isPresent()) { | ||
editPatientDescriptor.setBirthday(ParserUtil.parseBirthday(argMultimap.getValue(PREFIX_BIRTHDAY).get())); | ||
} | ||
if (argMultimap.getValue(PREFIX_IC_NUMBER).isPresent()) { | ||
editPatientDescriptor.setIcNumber(ParserUtil.parseIcNumber(argMultimap.getValue(PREFIX_IC_NUMBER).get())); | ||
} | ||
if (argMultimap.getValue(PREFIX_DEPARTMENT).isPresent()) { | ||
editPatientDescriptor.setDepartment(ParserUtil.parseAssignedDepartment( | ||
argMultimap.getValue(PREFIX_DEPARTMENT).get())); | ||
} | ||
if (argMultimap.getValue(PREFIX_INITIAL_OBSERVATION).isPresent()) { | ||
editPatientDescriptor.setInitialObservation(argMultimap.getValue(PREFIX_INITIAL_OBSERVATION).get()); | ||
} | ||
if (argMultimap.getValue(PREFIX_DIAGNOSIS).isPresent()) { | ||
editPatientDescriptor.setDiagnosis(argMultimap.getValue(PREFIX_DIAGNOSIS).get()); | ||
} | ||
if (argMultimap.getValue(PREFIX_TREATMENT_PLAN).isPresent()) { | ||
editPatientDescriptor.setTreatmentPlan(argMultimap.getValue(PREFIX_TREATMENT_PLAN).get()); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that you have implemented the same checks as previous attributes. Good job!
Update
EditCommand.java
,EditCommandParser.java
, andParserUtil.java
Edit
EditCommand.java
,EditCommandParser.java
, andParserUtil.java
so that we can edit the patient information and its record.